package com.nft.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author hq
 * @date: 2022/10/25 10 50 19
 */
@Getter
@AllArgsConstructor
public enum ResultCode {
    SUCCESS("200","成功"),
    PARAMETER_FORMAT_ERROR("400","参数格式错误"),
    NO_AUTHENTICATION("401","未登录"),
    NO_AUTHORITY("403","没有权限访问"),
    EXCEPTION("500","后台错误"),

    PARAMETER_ERROR("1001","参数校验失败"),
    OBJECT_ERROR("1002","对象为空错误"),

    //业务错误
    NO_REAL_NAME("2001","请先实名认证"),
    BALANCE_NOT_ENOUGH("2002","余额不足"),
    PAY_PASSWORD_ERROR("2003","支付密码错误"),




    ;

    /**
     * 状态码
     */
    private String code;

    /**
     * 信息
     */
    private String message;

}
